import {History} from './History';

class Game{
  private state:string;
  createHistory():History{
    return new History(this);
  }
  restore(history:History):void{
    this.state = history.getState();
  }
  getState():string{
    return this.state;
  }
  setState(state:string):void{
    this.state = state;
  }
}

export {Game};